package com.dhcc.bpm.modules.metadata.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.common.text.Convert;
import com.dhcc.bpm.modules.metadata.entity.ResMetadata;
import com.dhcc.bpm.modules.metadata.mapper.ResMetadataMapper;
import com.dhcc.bpm.modules.metadata.service.IResMetadataService;
import com.dhcc.bpm.modules.metadata.vo.ResMetadataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ResMetadataServiceImpl
 * @Description 响应元数据关联表 服务实现类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_res_metadata")
public class ResMetadataServiceImpl extends ServiceImpl<ResMetadataMapper, ResMetadata> implements IResMetadataService {
	@Autowired
	private ResMetadataMapper resMetadataMapper;
	@Override
	public IPage<ResMetadataVO> selectResMetadataPage(IPage<ResMetadataVO> page, ResMetadataVO resMetadata) {
		return page.setRecords(baseMapper.selectResMetadataPage(page, resMetadata));
	}
	@Override
	public int deleteResMetadata(Long opcApiIdRes, String ids) {
		return resMetadataMapper.deleteResMetadata(opcApiIdRes, Convert.toLongArray(ids));
	}
}
